import 'package:flutter/material.dart';

class MyBottomBar extends StatelessWidget {
  final List<Widget> children;
  final Color? backgroundColor;
  final double? elevation;
  final double? height;
  final MainAxisAlignment mainAxisAlignment;
  const MyBottomBar(
      {super.key,
      required this.children,
      this.backgroundColor,
      this.elevation,
      this.height,
      this.mainAxisAlignment = MainAxisAlignment.spaceEvenly});

  @override
  Widget build(BuildContext context) {
    return Material(
      elevation: elevation ?? 0,
      color: backgroundColor,
      child: SafeArea(
        top: false,
        child: Container(
          height: height ?? 60,
          alignment: Alignment.center,
          child: Row(
            mainAxisAlignment: mainAxisAlignment,
            children: children,
          ),
        ),
      ),
    );
  }
}
